#!/usr/bin/env python
#-*- coding:utf-8 -*-
import copy
li1 = [1.1,'迪迦',2,98,12,31,['泰罗',3,231,312321,['不存在',23312,32131,34.1,['真的不存在啊']]],'奥特之父','奥特之母']
li2 = copy.deepcopy(li1)
count_int = 0
count = 0
def count_element(a_list):
    global count
    global count_int
    for i in a_list:
        if type(i)==int:
            count_int+= 1
        if type(i) == list:
            count_element(i)
        count += 1
def del_int(a_list,new_list):
    for i in a_list:
        if type(i) == int:
            new_list.pop(new_list.index(i))
        elif type(i) == list:
            del_int(i,new_list[new_list.index(i)])
count_element(li1)
del_int(li2,li1)
print(('列表li1中共有%d个元素，%d个数字')%(count,count_int))
print(li1)



